<!DOCTYPE html>
<!--suppress ALL-->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div th:include="header::fragment1"></div>
    <h1>html</h1>
    <label th:text="${price}"></label>
    <div th:text="${str}"></div>
    <p th:text="${book.bookName}"></p>

    <p class="style" th:inline="text">图书名称：[[${book.bookName}]]</p>
    <div th:object="${book}">
        <p th:text="*{price}"></p>
        <p th:text="*{bookName}"></p>
    </div>

    <table style="width: 600px" border="1" cellspacing="0">
        <caption>图书</caption>
        <thead>
            <tr>
               <th>图书名称</th>
               <th>图书价格</th>
            </tr>
        </thead>
        <tbody>
            <tr th:each="book :${books}">
                <td th:text="${book.bookName}"></td>
                <td th:text="${book.price}"></td>
                <td th:if="${book.price}>80">太贵了</td>
                <td th:unless="${book.price}>70">还好</td>
                <td th:switch="${book.price}/10">
                    <label th:case="8.88">贵了</label>
                </td>
            </tr>
        </tbody>
    </table>
    <div th:include="footer::fragment2"></div>
</body>
    <style type="text/css" th:inline="css">
        .style{
            color: [[${color}]];
        }
    </style>
</html>